<extend name="Public/base" />

<block name="body">
    <!-- 标题栏 -->
    <div class="main-title">
        <h2>用户路由变更日志</h2>
    </div>
    <div class="cf">
        <!-- 高级搜索 -->
        <div class="search-form fr cf">
            <div class="sleft">
                <input type="text" id="lv" class="search-input" value="{$name}" placeholder="搜索用户">
            </div>
            <div class="sleft">
                <a class="sch-btn" href="javascript:;" id="search" ><i class="btn-search"></i></a>
            </div>
        </div>

    </div>
    <!-- 数据列表 -->
    <div class="data-table table-striped">
        <table class="">
            <thead>
            <tr>
                <!--<th class="row-selected row-selected"><input class="check-all" type="checkbox"/></th>-->
                <th class="">序号</th>
                <th class="">操作者</th>
                <th class="">修改前的路由</th>
                <th class="">修改内容</th>
                <th class="">修改时间</th>
            </tr>
            </thead>
            <tbody>

            <notempty name="showdata">
                <volist name="showdata" key="k" id="so">
                    <tr>
                        <td>{$so.id}</td>
                        <td>{$so.op_id}</td>
                        <td>{$so.before_route}</td>
                        <td>{$so.content}</td>
                        <td>{$so.time|date="Y-m-d H:i",###}</td>
                    </tr>
                </volist>
                <else/>
                <td colspan="9" class="text-center"> aOh! 暂时还没有内容! </td>
            </notempty>
            </tbody>
        </table>
    </div>
    <div class="page">
        {$page->show()}
    </div>
</block>

<block name="script">
    <link href="__STATIC__/datetimepicker/css/datetimepicker.css?v={:SITE_VERSION}" rel="stylesheet" type="text/css">
    <php>if(C('COLOR_STYLE')=='blue_color') echo '<link href="__STATIC__/datetimepicker/css/datetimepicker_blue.css?v={:SITE_VERSION}" rel="stylesheet" type="text/css">';</php>
    <link href="__STATIC__/datetimepicker/css/dropdown.css?v={:SITE_VERSION}" rel="stylesheet" type="text/css">
    <script src="__STATIC__/thinkbox/jquery.thinkbox.js?v={:SITE_VERSION}"></script>
    <script type="text/javascript">
        //搜索功能
        $("#search").click(function(){
            var lv=$("#lv").val();
            window.location.href ="{:U('EditLog/log_show')}?nickname="+lv;
        });
        //回车搜索
        $(".search-input").keyup(function(e){
            if(e.keyCode === 13){
                $("#search").click();
                return false;
            }
        });
        //导航高亮
        $('.side-sub-menu').find('a[href="{:U(\'index\')}"]').closest('li').addClass('current');
    </script>
</block>
